package com.xinsoft.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinsoft.entity.dto.ScmOutsourcingOutstockParam;
import com.xinsoft.entity.po.ScmOutsourcingOutstock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinsoft.entity.vo.ScmOutsourcingOutstockDetailVo;
import com.xinsoft.entity.vo.ScmOutsourcingOutstockPageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author ZYM
* @description 针对表【scm_outsourcing_outstock(委外出库)】的数据库操作Mapper
* @createDate 2023-09-01 10:38:54
* @Entity com.xinsoft.entity.po.ScmOutsourcingOutstock
*/
public interface ScmOutsourcingOutstockMapper extends BaseMapper<ScmOutsourcingOutstock> {

    IPage<ScmOutsourcingOutstockPageVo> findPageListByParam(Page<ScmOutsourcingOutstockPageVo> page, @Param("param") ScmOutsourcingOutstockParam param);

    List<ScmOutsourcingOutstockPageVo> findPageListByParam(@Param("param") ScmOutsourcingOutstockParam param);

    ScmOutsourcingOutstockDetailVo getOutstockById(Integer id);

    int getPurchaseReturnCiteCount(Integer id);
}




